def factors():
    num = input("For which number would you like to know the factors? ")
    factors = []
    for i in range(1, num + 1):
        if num % i == 0:
            factors.append(i)
    print factors

factors()
